package com.andy.mall.product.service;

import com.andy.mall.product.vo.Category2Vo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.andy.common.utils.PageUtils;
import com.andy.mall.product.entity.CategoryEntity;

import java.util.List;
import java.util.Map;

/**
 * 商品三级分类
 *
 * @author guochen
 * @email guochen5188@163.com
 * @date 2020-10-28 10:50:49
 */
public interface CategoryService extends IService<CategoryEntity> {

    PageUtils queryPage(Map<String, Object> params);

    List<CategoryEntity> listWithTree();

    void removeByMeunIds(List<Long> asList);

    Long[] getCatelogPath(Long catelogId);

    void updateCascade(CategoryEntity category);

    List<CategoryEntity> getLevel1Categorys();

    Map<String, List<Category2Vo>> getCategory2Json();

}

